package com.wenbo.wenbo.controller;


import com.wenbo.wenbo.service.BirthdayService;
import com.wenbo.wenbo.utils.ResultObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @author ywb
 * @date 2021年12月08日 9:57
 */
@RestController
@RequestMapping("/api/birthday")
public class BirthDayController {

    @Resource
    private BirthdayService birthdayService;



    @GetMapping("/wishes")
    public ResultObject<Void> wishes() {
        birthdayService.wishes();
        return ResultObject.ok();
    }

    @GetMapping("/birth")
    public ResultObject<Void> birth() {
        birthdayService.birth();
        return ResultObject.ok();
    }


}
